package com.gk.study.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gk.study.Vo.CourseTeacherVO;
import com.gk.study.common.CourseStatus;
import com.gk.study.entity.Course;
import com.gk.study.entity.Score;

import java.util.List;

public interface CourseService extends IService<Course> {
    // 获取用户课程列表
    List<Course> getCoursesByUser(Long userId, CourseStatus status);

    // 取消课程
    void cancelCourse(Long courseId, Long userId);

    // 确认课程完成
    void completeCourse(Long courseId, Long userId);

    List<CourseTeacherVO> getTeacherCourses(Long teacherId, CourseStatus status);

    List<Course> getUnratedCompletedCourses(Long userId);
    void submitEvaluation(Score score);

}

